#ifndef ___LCD_3_PIN 
#define ___LCD_3_PIN 



// publick variables

#define FourLines 20
//#define TwoLines 40


// public MACROS
// public functions
extern void InitLCD(void);
extern void ClearLCD(void);
extern void WriteToPosLCD(unsigned char line,unsigned char pos);
extern void SetLCDDim(unsigned char lines, unsigned char chars);
extern void PutStrLCD( const char* string);
extern void putch ( unsigned char character);
extern void SetTickLCD(void); // for interrupt use only
extern void CursorBlinkLCD(void);
extern void CursorOnLCD(void);
extern void CursorOffLCD(void);

//#define LCDA 4
#define LCDE 4
	#ifdef LCDA 
		#undef LCDE
		#define WData RA1
		#define WClock RA2
		#define WE RA3
		#define PORT_MASK 0b11110001
		#define LCD_PORT PORTA
		#define LCD_TRIS TRISA
	#endif

	#ifdef LCDE
		#undef LCDA
		#define WData RE2
		#define WClock RE1
		#define WE RE0
		#define PORT_MASK 0b00000000
		#define LCD_PORT PORTE
		#define LCD_TRIS TRISE
	#endif

#endif
